package com.atguigu.java;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author 杨琛
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Person {

    private String name;
    public int age;

    public void show() {
        System.out.println("你好,我是一个人");
    }

    private Person(String name) {
        this.name = name;
    }

    private String showNation(String nation) {
        System.out.println("我的国家是" + nation);
        return nation;
    }
}
